package com.lucifer.hawkeye.ai.model;

import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.util.Assert;

/**
 * @author lucifer
 * @date 2025/3/28 17:27
 */
public class ChatClientFactory {

    public static ChatClient buildChatClient(ChatModel model){
        Assert.notNull(model, "chatModel cannot be null");
        return ChatClient.create(model);
    }
}
